module.exports = app => {
    const { STRING, INTEGER, DATE } = app.Sequelize;
    const Banner = app.model.define('banner', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        uid: STRING,
        name: STRING(30),
        avatar: STRING,
        keys: STRING(30),
        pid:INTEGER,
        link:STRING,
        type:INTEGER,
        state: INTEGER,
        created_at: DATE,
        updated_at: DATE,
    });

  
   

    return Banner;
};